package com.jlf.controller.sample.entity;

import com.jlf.sample.auto.generate.domain.Sample1DO;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;

/**
 * 文件注释
 *
 * @author wujr
 * 2023/7/20
 * @version 1.0
 * 【变更历史】
 * [wujr 2023/7/20 1.0 新增]
 */
@Getter
@Setter
public class Sample1Input {
    private String name;
    private Short age;
    private Short gender;
    private LocalDate birthday;
    
    public Sample1DO to(){
        Sample1DO record = new Sample1DO();
        record.setName(this.name);
        record.setGender(this.gender);
        record.setAge(age);
        record.setBirthday(birthday);

        return record;
    }
}
